package test2

import (
	"fmt"
	"game/readygo/eventbus/test/task"
)

type Test2Handler struct {
	Listen1 func() `event:"Listen1Func"`
	Listen2 func() `event:"Listen2Func"`
	Listen3 func() `event:"Listen3Func"`
}

func (t *Test2Handler) Listen1Func(event *task.Test1Event) {
	fmt.Println("Test2Handler.Listen1Func", event)
}

func (t *Test2Handler) Listen2Func(event *task.Test2Event) {
	fmt.Println("Test2Handler.Listen2Func", event)
}

func (t *Test2Handler) Listen3Func(event task.ITaskEvent) {
	fmt.Println("Test2Handler.Listen3Func", event)
}
